package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;

public class PnLTrdLvRepoId implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer ticket;
    private Date trdDt;
    private Date settDt;
    private Date inputDt;
    private Date date;
    private String fundname;

    public PnLTrdLvRepoId(){
        super();
    }

    public PnLTrdLvRepoId(Integer ticket, Date trdDt, Date settDt, Date inputDt, Date date, String fundname){
        super();
        this.ticket=ticket;
        this.trdDt=trdDt;
        this.settDt=settDt;
        this.inputDt=inputDt;
        this.date=date;
        this.fundname=fundname;
    }

    public void setTicket(Integer ticket) {
        this.ticket = ticket;
    }

    public Integer getTicket() {
        return ticket;
    }

    public void setTrdDt(Date trdDt) {
        this.trdDt = trdDt;
    }

    public Date getTrdDt() {
        return trdDt;
    }

    public void setSettDt(Date settDt) {
        this.settDt = settDt;
    }

    public Date getSettDt() {
        return settDt;
    }

    public void setInputDt(Date inputDt) {
        this.inputDt = inputDt;
    }

    public Date getInputDt() {
        return inputDt;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getFundname() {
        return fundname;
    }

    public void setFundname(String fundname) {
        this.fundname = fundname;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((ticket == null) ? 0 : ticket.hashCode());
        result = prime * result + ((trdDt == null) ? 0 : trdDt.hashCode());
        result = prime * result + ((settDt == null) ? 0 : settDt.hashCode());
        result = prime * result + ((inputDt == null) ? 0 : inputDt.hashCode());
        result = prime * result + ((date == null) ? 0 : date.hashCode());
        result = prime * result + ((fundname == null) ? 0 : fundname.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        PnLTrdLvRepoId other = (PnLTrdLvRepoId) obj;
        if (ticket == null) {
            if (other.ticket != null)
                return false;
        } else if (!ticket.equals(other.ticket))
            return false;
        if (trdDt == null) {
            if (other.trdDt != null)
                return false;
        } else if (!trdDt.equals(other.trdDt))
            return false;
        if (settDt == null) {
            if (other.settDt != null)
                return false;
        } else if (!settDt.equals(other.settDt))
            return false;
        if (inputDt == null) {
            if (other.inputDt != null)
                return false;
        } else if (!inputDt.equals(other.inputDt))
            return false;
        if (date == null) {
            if (other.date != null)
                return false;
        } else if (!date.equals(other.date))
            return false;
        if (fundname == null) {
            if (other.fundname != null)
                return false;
        } else if (!fundname.equals(other.fundname))
            return false;
        return true;
    }
}

